//logic behind Settings XML


//settings class
public class Settings {

	boolean training_mode;
	int time_per_question;
	int total_time;
	
	public void training_mode(){
		if (training_mode=true){
			total_time=0;
		}
		
	}
	public void set_total_time(int user_total_time){
		total_time=user_total_time;
	}
	public void set_total_time_per_question(int user_time_per_question){
		total_time=user_time_per_question;
	}
	public int get_total_time_per_question(){
		return time_per_question;
	public int get_total_time(){
		return total_time;
	
}
//Scales class
public class scales extends notes {

	HashMap<String, ArrayList<notes>> scale = new HashMap<String, ArrayList<notes>>();
	
	public void add_scale(String scale_name, ArrayList <notes> scale_notes){
		scale.put(scale_name, scale_notes);
	}
	 
}
//touch class
public class Touch(){
      MotionEvent touch = new MotionEvent();
	  
	  public int get_x_coordinate(){
			return touch.getX();
	  }
	   public int get_y_coordinate(){
			return touch.getY();
	  }
	  



//Notes class
public class Notes extends Touch {

		String note_name;
		int note_pitch;
		int note_resource_id;
		int note_image_id;
		int note_x_coordinate;
		int y_coordinate;
		
		
		public void set_note(String name, int pitch, int resource_id, int image_id) {
			note_name=name;
			note_pitch=pitch;
			note_resource_id=resource_id;
			note_image_id=image_id;
			note_x_coordinate=touch.get_x_coordinate();
			note_y_coordinate=touch.get_y_coordinate();
			
			}
		public String get_note(){
			return note_name;
		}
		public int get_pitch(){
			return note_pitch;
		}
		public int get_resource(){
			return note_resource_id;
		}
		
}
//player class
public class player extends notes {

	public void play_note(Context context, notes note){
		
		mp = MediaPlayer.create(context, note.get_resource());
		mp.start(); 
	}
	
	
}
//One Minute Test Game
public class OneMinuteTest extends Activity {
Settings user_settings = new user_settings(this);

int countdown = user_settings.get_total_time();

int number_correct;
int number_wrong;

ArrayList <notes> list_of_notes = new ArrayList<notes>(); 
public void Create
 @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.one_minute_test);
		
	}
	//counts down the timer
	   OnChronometerTickListener ChronometerTickListener = new OnChronometerTickListener() {
    	@Override
		public void onChronometerTick(Chronometer chronometer) { 		
    			countdown--;
    			chronometer.setText(String.valueOf(countdown));
    			if (countdown<=0) {
    				chrono.stop();
    				showOMTEndDialog();
    			}
    		}
	//Adds buttons for user to select notes
	private void createbuttons(){
	}
	private void add_notes(){
		notes a_note = new notes();
		list_of_notes.add(a_note);
	}
	//shows random next note
	private void showNextNote(){
		
	}
	private Score Calculate(){
		Score this_score=new Score(number_correct, number_wrong);
		return this_score;
	}
	private void is_high_score(){
	}
}

//Learn Scales 
//some functions used in this game are used in others. For the sake of brevity, only the function calls themselves will be shown
public class OneMinuteTest extends Activity {
int countdown = 61;
int number_correct;
int number_wrong;

ArrayList <notes> list_of_notes = new ArrayList<notes>(); 
public void Create
 @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.one_minute_test);
		
	}
	//counts down the timer
	   OnChronometerTickListener ChronometerTickListener = new OnChronometerTickListener() {
    	}
		
	//Adds buttons for user to select notes
	private void createbuttons(){
	}
	private void add_scales(){
		Scales populate_scales;
		populate_scales.add("scale",notes);
	}
	//shows random next note
	private void showNextNote(){
		
	}
	private Score Calculate(){
		Score this_score=new Score(number_correct, number_wrong);
		return this_score;
	}
	private void is_high_score(){
	}
}
//Learn Notes 
//some functions used in this game are used in others. For the sake of brevity, only the function calls themselves will be shown
public class OneMinuteTest extends Activity {
int countdown = 61;
int number_correct;
int number_wrong;

ArrayList <notes> list_of_notes = new ArrayList<notes>(); 
public void Create
 @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.one_minute_test);
		
	}
	//counts down the timer
	   OnChronometerTickListener ChronometerTickListener = new OnChronometerTickListener() {
    	}
		
	//Adds buttons for user to select notes
	private void createbuttons(){
	}
	private void add_scales(){
		Scales populate_scales;
		populate_scales.add("scale",notes);
	}
	//shows random next note
	private void showNextNote(){
		
	}
	private Score Calculate(){
		Score this_score=new Score(number_correct, number_wrong);
		return this_score;
	}
	private void is_high_score(){
	}
}


	
	
	
		